const {getChangedFilesForRoots}=require('jest-changed-files');

getChangedFilesForRoots(['./'],{lastCommit:true}).then(ret=>console.log(ret));